import type { RouteItem } from '@/router'

export const converRouterType = (
  routes: RouteItem | RouteItem[]
): RouteItem[] => (Array.isArray(routes) ? routes : [routes])
